package com.magic.shop;

import com.magic.shop.service.UserService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
@MapperScan("com.magic.shop.dao")
public class ShopMallApplication {

    @Autowired
    private UserService userService;

    public static void main(String[] args) {
        SpringApplication.run(ShopMallApplication.class, args);

    }
//    @PostConstruct
//    public void test(){
//        System.out.println("=================自启动============================");
//        System.out.println(userService.findById(3));
//    }

}
